<?php

namespace app\index\controller;
use think\Controller;

class Common extends Controller
{
    public function initialize()
    {
        header("Access-Control-Allow-Origin:*");
        header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");

        header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding,Accept,Connection,Cookie,token,Access-Token,PHPSESSID,referer,host,content-length");
    }
}